import request from '@/utils/request'

export function loginAPI({ username, password }) {
  return request({
    url: '/park/login',
    method: 'post',
    data: {
      username,
      password
    }
  })
}

export function getProfileAPI() {
  return request({
    url: '/park/user/profile',
    method: 'get'
  })
}
